<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->resource('user', 'UserController'); //用户管理
    $router->resource('staff', 'StaffController'); //员工管理
    $router->resource('brand', 'BrandController'); //品牌管理
    $router->resource('store', 'StoreController'); //门店管理
    $router->resource('department', 'DepartmentController'); //部门管理
    $router->resource('car', 'CarController'); //汽车管理
});
